package hcn.protocol.brandnew.dengji.paiduijiaohao;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 全院候诊信息查询-响应消息(成功) - ODS_02080002_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class ListWholeQueuesResponse {

    /**
     * 候诊记录
     */
    @XmlElementWrapper(name = "Records")
    @XmlElement(name = "Record")
    private List<Record> records;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ListQueue {

        /**
         * 当前看诊序号
         */
        @XmlElement(name = "CurrentNumber")
        private Integer currentNumber;
        /**
         * 队列名称
         */
        @XmlElement(name = "QueueName")
        private String queueName;
        /**
         * 医生类别
         */
        @XmlElement(name = "DoctorType")
        private Byte doctorType;
        /**
         * 等待人数
         */
        @XmlElement(name = "WaitingNumber")
        private Integer waitingNumber;
        /**
         * 剩余号源数
         */
        @XmlElement(name = "RemainNumber")
        private Integer remainNumber;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Record {

        /**
         * 就诊医疗机构组织机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 就诊机构名称
         */
        @XmlElement(name = "VisitOrganizationName")
        private String visitOrganizationName;
        /**
         * 挂号科室名称
         */
        @XmlElement(name = "DeptName")
        private String deptName;
        /**
         * 科室地址
         */
        @XmlElement(name = "AdmitAddress")
        private String admitAddress;
        /**
         * 排队队列信息
         */
        @XmlElementWrapper(name = "ListQueues")
        @XmlElement(name = "ListQueue")
        private List<ListQueue> listQueues;
    }

}
